import Home from '../views/Home.vue'
import VIP from '../views/VIP.vue'
import Find from '../views/Find.vue'
import News from '../views/News.vue'
import Mine from '../views/Mine.vue'
import Footer from '@/views/Footer.vue'

const routes = [
  {
    path: '/',
    redirect: '/home',
    meta: {
      isFooter: false
    }
  },
  {
    path: '/home',
    name: 'Home',
    components: {
      default: Home,
      'bz-footer': Footer
    },
    meta: {
      isFooter: true,
      icon: 'home-o',
      title: '首页'
    }
  },
  {
    path: '/vip',
    name: 'VIP',
    components: {
      default: VIP,
      'bz-footer': Footer
    },
    meta: {
      isFooter: true,
      icon: 'search',
      title: '会员'
    }
  },
  {
    path: '/find',
    name: 'Find',
    components: {
      default: Find,
      'bz-footer': Footer
    },
    meta: {
      isFooter: true,
      icon: 'search',
      title: '发现'
    }
  },
  {
    path: '/news',
    name: 'News',
    components: {
      default: News,
      'bz-footer': Footer
    },
    meta: {
      isFooter: true,
      icon: 'friends-o',
      title: '消息'
    }
  },
  {
    path: '/mine',
    name: 'Mine',
    components: {
      default: Mine,
      'bz-footer': Footer
    },
    meta: {
      isFooter: true,
      icon: 'setting-o',
      title: '我的'
    }
  }
]

export default routes
